<!--员工信息编辑-->
<div id="vueAppId_${serializeNum}">
    <form role="form" class="form-horizontal" id="editForm_${serializeNum}" addUrlApiKey="addDept"
          updateUrlApiKey="updateDept"
          method="post"
          responseType="json"
          data-bv-submitButtons="#editFormSubmitBtn_${serializeNum}"
          data-bv-message="必填项,请输入或选择值"
          data-bv-feedbackicons-valid="glyphicon glyphicon-ok"
          data-bv-feedbackicons-invalid="glyphicon glyphicon-remove"
          data-bv-feedbackicons-validating="glyphicon glyphicon-refresh">
        <input type="hidden" name="id" value="${deptId[0]}">
        <input type="hidden" name="parentId" value="${parentId[0]}">
        <div class="col-sm-12">
            <div class="form-group nomargin-left nomargin-right">
                <label class="col-sm-2 control-label" for="parentNames">上级部门</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" value="${parentDeptName[0]}" disabled="disabled">
                </div>
            </div>
        </div>
        <div class="col-sm-12">
            <div class="form-group nomargin-left nomargin-right">
                <label class="col-sm-2 control-label" for="deptName"><span class="red">*</span>部门名称</label>
                <div class="col-sm-10">
                    <input class="form-control" id="deptName" name="deptName" placeholder="部门名称" required="required"
                           type="text" :value="bean.deptName">
                </div>
            </div>
        </div>
        <div class="col-sm-12 ">
            <div class="form-group nomargin-left nomargin-right">
                <label class="col-sm-2 control-label" for="deptHead">部门负责人</label>
                <div class="col-sm-10">
                    <select class="form-control selectpicker_${serializeNum}" id="deptHead" name="deptHead"
                            placeholder="部门负责人">
                        <option value="">请选择</option>
                        <template v-for="au in adminUserList">
                            <option :value="au.id" v-text="au.realName" selected="selected" v-if="au.id==bean.deptHead"></option>
                            <option :value="au.id" v-text="au.realName" v-else></option>
                        </template>
                    </select>
                </div>
            </div>
        </div>
        <div class="col-sm-12 hidden">
            <div class="form-group nomargin-left nomargin-right">
                <label class="col-sm-2 control-label" for="businessId">所属业务</label>
                <div class="col-sm-10">
                    <select class="form-control selectpicker_${serializeNum}" id="businessId" name="businessId"
                            placeholder="所属业务" required="required">
                    </select>
                </div>
            </div>
        </div>
        <div class="col-sm-12">
            <div class="form-group nomargin-left nomargin-right">
                <input type="hidden" :value="bean.status" name="status">
                <label for="isForbidden" class="col-sm-2 control-label">是否禁用</label>
                <div class="col-sm-10">
                    <label>
                        <input class="checkbox-slider yesno" type="checkbox" data-target-input-name="status"
                               v-if="bean.status==1" checked="checked">
                        <input class="checkbox-slider yesno" type="checkbox" data-target-input-name="status" v-else>
                        <span class="text"></span>
                    </label>
                </div>
            </div>
        </div>
        <div class="row customer-modal-footer">
            <button type="button" class="btn btn-blue" onclick="editModel.closeDialog()">取消</button>
            <button type="submit" class="btn btn-danger" id="editFormSubmitBtn_${serializeNum}" ondblclick="false">提交
            </button>
        </div>
    </form>
</div>
<script type="text/javascript">
    // 编辑表单Id
    var editFormId = "editForm_${serializeNum}";
    var editVueAppId = "vueAppId_${serializeNum}";
    var selectpickerClass = "selectpicker_${serializeNum}";
    var enitFormSubmitId = "editFormSubmitBtn_${serializeNum}";
</script>
<script type="text/javascript" src="${ctx}/assets/js/custom/client/sysDept/edit.js"></script>